package com.woniuxy.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("竞价信息")
public class RoomUserDto {
    @NotNull(message = "房间id不能为空！")
    @ApiModelProperty("房间id")
    private Integer roomid;

    private Integer userid;
    @NotNull(message = "出价不能为空！")
    @ApiModelProperty("出价")
    private BigDecimal currprice;
    @NotNull(message = "商品id不能为空！")
    @ApiModelProperty("商品id")
    private Integer productid;
}
